package com.myframework.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class TestController {
	@RequestMapping("/test.do")
	public ModelAndView testMVC() {
		System.out.println("这里测试springMVC配置。");
		ModelAndView modelAndView = new ModelAndView("/testMVC");
		modelAndView.addObject("information", "Hello,myFramework!");
		return modelAndView;
	}
}
